package com.qidianit.task.service.impl;

import com.qidianit.task.mapper.UserMapper;
import com.qidianit.task.service.UserService;
import com.qidianit.task.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Description
 * @Time 2024/9/6 上午 10:18
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Value("${server.port}")
    private String port; // 这里绑定我们的服务端口
    @Override
    public QdResult queryAll() {
        QdResult result = QdResult.success(userMapper.selectAll());
        result.setMsg(port);
        return result;
    }
}
